﻿
namespace Mulala.Cavan.Domain.MainBoundedContext.SearchModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class AreaSearchFactory
    {
        public static AreaSearch CreateAreaSearch(string code)
        {
            AreaSearch search = new AreaSearch();
            search.ID = code;

            return search;
        }

        public static AreaSearch CreateAreaSearch(string code, bool isParentCode)
        {
            AreaSearch search = new AreaSearch();
            search.ParentCode = code;

            return search;
        }

        public static AreaSearch CreateAreaSearch(int level)
        {
            AreaSearch search = new AreaSearch();
            search.Level = level;

            return search;
        }

        public static AreaSearch CreateAreaSearchBySpell(string spell)
        {
            AreaSearch search = new AreaSearch();
            search.Spell = spell;

            return search;
        }
    }
}
